import request from '@/utils/request'

// 查询案件列表
export function caseManagementList(query) {
  return request({
    url: '/case_management/getCaseCondition',
    method: 'get',
    params: query
  })
}

// 查勘员列表
export function surveyorList(query) {
  return request({
    url: '/ahct/acse/surveyor',
    method: 'get',
    params: query
  })
}

//新增案件
export function addCaseManagement(data) {
  return request({
    url: '/case_management/insertCase',
    method: 'post',
    data: data
  })
}

//修改案件
export function updateCaseManagement(data) {
  return request({
    url: '/case_management/updateCase',
    method: 'post',
    data: data
  })
}


//删除案件
export function deleteCaseManagement(data) {
  return request({
    url: '/case_management/deleteCase',
    method: 'post',
    data: data
  })
}
